 <!DOCTYPE html>
<html>
 <#include "../head.html">
 <body>
    <table class="mc">
        <tr>
             <td class="mc-l">
                <!--左侧导航---{-->
                <div id="navPanelContainer">
                    <div class="system-logo cd"></div>
                    <!--管理员信息---{-->
                    <#include "../adminInfo.html">
                        <!--管理员信息---}-->
                        <div class="nav-wrap">
                            <#include "left.html">
                        </div>
                </div>
                <!--左侧导航---}-->
            </td>
             <td class="mc-m">
                <div class="navToggle"></div>
            </td>
            <td class="mc-r">
                <!--顶部导航---{-->
                <#include "../topNav.html">
                    <!--顶部导航---}-->

                    <!--面包屑导航---{-->
                    <#assign moduleName="资金使用统计">
                        <#include "banner.html">
                            <!--面包屑导航---}-->
                            <!--工具栏--{-->
                            <div id="toolbar" class="clearfix">

                                <div class="toolbor-module export">
                                    <input type="button" onClick="exportxls()" value="导出报表" class="input-button export-btn"/>
                                </div>

                                <#if param?exists>
                                    <#if param.get("dotime1")?exists><#assign dotime1=param.get("dotime1")></#if>
                                    <#if param.get("dotime2")?exists><#assign dotime2=param.get("dotime2")></#if>
                                </#if>

                                <#if param??&&param.status??>
                                    <#assign status=(param.get("status"))?number >
                                        <#else>
                                            <#assign status=0>
                                </#if>


								<div class="toolbor-module search">   
                                    <input type="button" value="搜索"  class="input-button" onClick="sousuo();">
                                </div>
                                <div class="toolbor-module search">
                                    <div style="height:22px;line-height:22px;float:left;">充值时间：</div>
                                    <input class="_search-value js-datetime" type="text" name="dotime1" id="dotime1" value="${dotime1!}"/>
                                    <div style="height:22px;line-height:22px;float:left;margin:0 8px;"> 到 </div>
                                    <input class="_search-value js-datetime" type="text"  name="dotime2" value="${dotime2!}" id="dotime2"/>
                                </div> 
                                
                            </div>
                            <!--工具栏--}-->
                                <div id="main" class="clearfix">
                                <form action="" method="post">
                                    <table class="data-list">
                                        <tr class="header">
                                            <td>成功借出总额</td>
                                            <td>已还款总额</td>
                                            <td>未还款总额</td>
                                            <td>逾期总额</td>
                                            <td>逾期已还款总额</td>
                                            <td>逾期未还款总额：</td>
                                        </tr>
                                        <tr class="s">
                                            <td>${borrow_success!}</td>
                                            <td>${yesRepayment}</td>
                                            <td>${noRepayment}</td>
                                            <td>${allLateSum}</td>
                                            <td>${yesLateSum}</td>
                                            <td>${noLateSum}</td>
                                        </tr>

                                    </table>
                                </form>

                            
                            <table class="data-list">
                                <br>
                            <strong></strong><br/>
                            <tr class="header">
                                <td width="200">类型名称</td>
                                <td width="200">金额</td>
                            </tr>
                            
                                <#if logSumList?exists>
                                        <#list logSumList as obj>
                                         </tr>
                                            <td>
                                                ${obj.typename!}
                                            </td>
                                            <td>${obj.sum}</td>
                                        </tr>
                                    </#list>
                                <#else>
                                空值
                                </#if>
                           
                            </table>

                                <!--底部工具栏--{-->
                                <div id="bottomToolbar" class="clearfix">
                                    <div class="other-tool">
                                        <dl class="refresh-data">
                                            <dt class="refresh-data-icon"></dt>
                                            <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                        </dl>
                                    </div>

                                    
                                </div>
                                <!--底部工具栏--}-->

                                 <script>
                                    var url = 'cashStatistic.html?search=true';
                                    var xlsurl = 'cashStatistic.html?type=export';
                                    function sousuo(){
                                        var sou = "";
                                        var dotime1 = $("#dotime1").val();
                                        var dotime2 = $("#dotime2").val();
                                        if (dotime1!=null){
                                            sou += "&dotime1="+dotime1;
                                        }
                                        if (dotime2!=null){
                                            sou += "&dotime2="+dotime2;
                                        }
                                        if (sou!=""){
                                            location.href=url+sou;
                                        }
                                    }
                                    function exportxls(){
                                        var sou = "";
                                        var dotime1 = $("#dotime1").val();
                                        var dotime2 = $("#dotime2").val();
                                        var type = $("#type").val();
                                        if (dotime1!=null){
                                            sou += "&dotime1="+dotime1;
                                        }
                                        if (dotime2!=null){
                                            sou += "&dotime2="+dotime2;
                                        }
                                        if (sou!=""){
                                            location.href=xlsurl+sou;
                                        }else{
                                            location.href=xlsurl;
                                        }
                                    }
                                </script>
                            </div>
                            </td>
                            </tr>
        <tr>
            <!--尾部--{-->
            <td colspan="3" class="mc-b"><#include "../foot.html"></td>
            <!--尾部--}-->
        </tr>
    </table>
</body>
</html>
<#include "../jsPage.html">